import {request} from './request.js'

const getCategoryDate=()=>{
  return request({
    url:'/category'
  })
}
const getSubCategory=(maitKey)=>{
  return request({
    url:'/subcategory',
    params:{
      maitKey
    }
  })
}
const getCategoryDetails=(miniWallkey,type)=>{
  return request({
    url:'/subcategory/detail',
    params:{
      miniWallkey,
      type
    }
  })
}
export {getCategoryDate,getSubCategory,getCategoryDetails}
